package utils;


import com.zj.eswrapper.wrapper.AbstractEsLastQueryWrapper;

public class EsUtils {

    /**
     * SearchRequest转DSL
     *
     * @param wrapper
     */
    public static void printSearchDSL(AbstractEsLastQueryWrapper<?, ?, ?, ?> wrapper) {
        System.out.println(wrapper.searchBuilder());
    }

    /**
     * Query转DSL
     *
     * @param wrapper
     */
    public static void printQueryDSL(AbstractEsLastQueryWrapper<?, ?, ?, ?> wrapper) {
        System.out.println(wrapper.queryBuilder());
    }
}
